<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/dbtest/logisticsites/eventdeal.jsx此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :details="details"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/demoproject/logisticsites/eventdeal.jsx";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        setup() {
            const table = ref({
                key: 'agvname',
                footer: "Foots",
                cnName: 'AGV事件状态',
                name: 'logisticsites/eventdeal',
                newTabEdit: false,
                url: "/eventdeal/",
                sortName: "datetime"
            });
            const editFormFields = ref({});
            const editFormOptions = ref([]);
            const searchFormFields = ref({"agvname":""});
            const searchFormOptions = ref([[{"title":"AGV小车","field":"agvname","type":"like"}]]);
            const columns = ref([{field:'agvname',title:'AGV小车',type:'string',sort:true,width:100,readonly:true,require:true,align:'left'},
                       {field:'event_code',title:'事件码',type:'string',width:60,align:'left'},
                       {field:'success',title:'状态',type:'sbyte',width:50,align:'left'},
                       {field:'datetime',title:'时间',type:'datetime',width:110,align:'left'}]);
            const detail = ref({columns:[]});
            const details = ref([]);
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
                details
            };
        },
    });
</script>
